//用于显示berfor页面的tabPanel
var indexBeforeTabPanel = Ext.create("Ext.tab.Panel", {
    defaults: {
        layout: 'fit',
    },
    items: [{
        title: '项目选择列表',
        itemId: 'projectList',
        items: [indexBeforeChooseProjectGrid]
    }, {
        title: '班级报名',
        itemId: 'classesList',
        items: [indexBeforeChooseEnterClassesGrid]
    }, {
        title: '个人信息',
        items: [personalMessageForm]
    }, {
        title: '修改密码',
        items: [updatePasswordForm]
    }, {
        title: '所属信息',
        itemId: 'viewPort',
        items: [personalViewPort]
    }],
    listeners: [{
        tabchange: function (tabPanel, newCard, oldCard, eOpts) {
            if (newCard.title == '个人信息')
                personSpaceTabClick(0);
            else if (newCard.title == '修改密码')
                personSpaceTabClick(1);
            else if (newCard.title == '所属信息')
                personSpaceTabClick(2);
        }
    }]
});